﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Ubatic.Business.Helpers
{
    public class BuilderHelper
    {
        public static int? GetNullableInt(object value)
        {
            return value != null && value.ToString() != string.Empty  ? int.Parse(value.ToString()) : (int?) null;
        }
        
        public static long? GetNullableLong(object value)
        {
            return value != null && value.ToString() != string.Empty ? long.Parse(value.ToString()) : (long?)null;
        }
    }
}
